Title Banner


Technical Q&A's


GXPD 32 - Page Setup/Format Dialog Extensions (1-Aug-95)


Q I want to create an extension for the Page Setup/Format dialog that performs "Flipping" functions. Is it feasible to create an extension for the Page Setup/Format Dialog?

A There is nothing to prevent you from creating an extension that adds a panel to the Page Setup dialog. Most extensions add to the Print dialog because, in most cases, this is the proper place to add a panel so the functionality of the extension affects the entire output, and because what extensions typically do is best suited for the Print dialog. Print extensions typically add to the Print dialog; drivers and applications typically add to the Format dialog.

However, if you're trying to modify the Confidential extension so that it adds to the Page Setup dialog, you have a bit more work to do. In addition to changing the 'over' resource, the Forward_Job call, and the name of the override function, you have to make changes to the code that adds the tag to the collection item.

The override calls a routine called SetUpPrintPanel() to add a new CollectionItem to the Job to store the confidential stamp information.

Since you want to change the extension so that it adds to the Page Setup dialog, you have to change this routine so that it adds the Collection to the Job's default Format object. Similarly, you have to change theGetStamp() routine so that it gets. Finally, you have to repeat all of these steps to add the panel to the Custom Page Setup dialog.

There is also another way that you can test your PageSetup panel. It is possible for an application to add a PageSetup or CustomPageSetup override. There are examples (Experiment no.9 and Banana Jr.) on the QuickDraw GX SDK that demonstrate the latter. You might try adding your flipping code to one of these.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help